package com.xhb.campusservices.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhb.campusservices.mapper.FeedbackListMapper;
import com.xhb.campusservices.pojo.feedbackDto.FeedbackList;
import com.xhb.campusservices.service.FeedbackListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeedbackListServiceImpl extends ServiceImpl<FeedbackListMapper, FeedbackList>
        implements FeedbackListService {
    @Autowired
    FeedbackListMapper feedbackListMapper;

    @Override
    public List<FeedbackList> feedbackListAdmin() {
        return feedbackListMapper.feedbackListAdmin();
    }

    @Override
    public List<FeedbackList> feedbackListOrdinary(Long userId) {
        return feedbackListMapper.feedbackListOrdinary(userId);
    }
}
